﻿@{
    ViewBag.Title = "病历痕迹列表";
    Layout = "~/Areas/IM/Views/Shared/_Layout.cshtml";
}
@section scripts{
    <script type="text/javascript">
        //页面动态改动
        $(window).resize(function () {
            $.setGridWithSearchBar("#TableForm", "#SearchBar", "#gridPRTrace");
        });
        //页面初始化
        $(document).ready(function () {
            bindGrid();
            $.setGridWithSearchBar("#TableForm", "#SearchBar", "#gridPRTrace");
        })

        function bindGrid() {
            $('#gridPRTrace').datagrid({
                width: 'auto',
                height: 'auto',
                fitColumns: true,
                striped: true,
                singleSelect: true,
                url: '@Url.Content("~/PR/PRTrace/DataLoad")',
                loadMsg: '数据加载中请稍后……',
                pagination: true,//启用分页
                rownumbers: true,//显示页码
                pageSize: 15,//设置 页容量
                pageList: [10, 15, 20],//设置 页容量下拉框
                queryParams: {
                    TaskCode:'@ViewBag.TaskCode',
                    PatientOrder:'@ViewBag.PatientOrder'
                        
                },
                columns: [[
                   { title: '修改时间', field: 'ModifyTime', width: '18%', align: "center", sortable: false },
                   { title: '修改人', field: 'ModifyPerson', hidden: true },
                   { title: '任务编码', field: 'TaskCode', hidden: true },
                   { title: '序号', field: 'PatientOrder', hidden: true },
                   { title: '修改项', field: 'ModifyItem', width: '27%', align: "center", sortable: false },
                   { title: '原值', field: 'OriginalValue', width: '27%', align: "center", sortable: false },
                   { title: '新值', field: 'NewValue', width: '27%', align: "center", sortable: false },
                   { title: '归属类型', field: 'OwnershipType', hidden: true }
                ]]
            })
        }
    </script>
}
<div id="TableForm" class="easyui-layout" style="width:auto; height: auto; margin-left: auto; margin-right: auto">
    <div data-options="region:'center',title:'病历痕迹列表',iconCls:'icon-custom-Entry'">
        <div id="SearchBar" data-options="region:'center'" style="overflow: hidden; padding: 0px">
        </div>
        <div data-options="region:'center'" style="background: #fafafa; overflow: hidden">
            <table id="gridPRTrace"></table>
        </div>
    </div>
</div>